package com.ssu.sslab;
import java.io.IOException;
import java.net.*;

public class SensingClientStarter {
	public static void main(String [] args) throws Exception {
				
		try {
			Socket socket = new Socket("localhost", 9797);
			
			//Client --AliveCheck.
			ClientController cc = new ClientController(0);
			
			//Client --get the information of sensorID = 11
			ClientController ci = new ClientController(1, 11);
			
			//Client --get the information of all sensors
			ClientController ca = new ClientController(2);
			
			//Client --cancel the sensor whose id  = 11
			ClientController cx = new ClientController(3,11);
			
			//Client --cancel all the sensor information
			ClientController cax = new ClientController(4);
			
			
			ClientSocketThread sc = new ClientSocketThread(socket,cc);
//			new SocketClient(new Socket("localhost", 1717)).start();
			sc.start();
			
		} catch (UnknownHostException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
	}
}
